package com.gash.scrape;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

public class ParseObject implements Serializable {
	public String title;
	public String url;
	public List<String> keywords;
	public List<String> links;
	public List<String> citations;
	
	public ParseObject() {
		title = "";
		url = "";
		keywords = new ArrayList<String>();
		links = new ArrayList<String>();
		citations = new ArrayList<String>();
	}
	
	public void objectPrinter() {
		System.out.println("\n");
		System.out.println("Title: " +title);
		System.out.println();
		System.out.println("URL: " +url);
		System.out.println();
		System.out.print("Keywords: ");
		for(int i = 0; i < keywords.size(); i++) {
			System.out.print(keywords.get(i) +", ");
		}
		System.out.println();
		System.out.println("\nLinks: ");
		for(int i = 0; i < links.size(); i++) {
			System.out.println(links.get(i) + " ");
		}
		System.out.println();
		System.out.println("Citations: ");
		for(int i = 0; i < citations.size(); i++) {
			System.out.println(citations.get(i));
		}
	}
}
